import http from '@/utils/http'

//全部分类
export function homeCategoryHeadApi () {
  return http({
    url: '/home/category/head',
    method: 'get'
  })
}

//一级分类详情
export function categoryApi (id) {
  return http({
    url: '/category',
    method: 'get',
    params: { id }
  })
}

//二级分类筛选条件
export function categorySubFilterApi (id) {
  return http({
    url: '/category/sub/filter',
    method: 'get',
    params: { id }
  })
}

//商品列表分页查询
export function categoryGoodsApi (data) {
  return http({
    url: '/category/goods/temporary',
    method: 'post',
   data
  })
}
